package com.IC.domain.deserializer;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author：xiawenze
 * @Package：com.IC.domain.deserializer
 * @Project：smart2
 * @name：OutlineDeserializer
 * @Date：2024/7/30 11:27
 */
public class OutlineDeserializer extends JsonDeserializer<JSONObject> {

    @Override
    public JSONObject deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException {
        String outlineString = jsonParser.getValueAsString();
        return JSONObject.parseObject(outlineString);
    }
}
